Only introduce domain to the store when we have store channel _and_ mfn.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 16 Aug 2005 16:34:04 +0000 (16:34 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Tue, 16 Aug 2005 16:34:04 +0000 (16:34 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/XendDomainInfo.py

index f11c622981bd2b16cbf93c6d58c8d775cf90c53d..7e0c07ab5399adeb7afe8c2214cdc12fd2735afa 100644 (file)
@@ -583,7 +583,7 @@ class XendDomainInfo:
         self.create_channel()
         self.image.createImage()
         self.exportToDB()
-        if self.store_channel:
+        if self.store_channel and self.store_mfn >= 0:
             self.db.introduceDomain(self.id,
                                     self.store_mfn,
                                     self.store_channel)